package model;

import java.awt.geom.Point2D;
import java.util.Vector;

public class HCalcResults {
	
	public static final String x_LABEL = "X";
	public static final String h_LABEL = "h";
	public static final String n_LABEL = "n";
	public static final String k_LABEL = "k";
	
	private Vector<Point2D.Double> results;
	private double totalProb;
	
	private int n;
	private int N;
	private int k;
	
	public HCalcResults(Vector<Point2D.Double> results, int N, int n, int k){
		this.N = N;
		this.n = n;
		this.k = k;
		this.results = results;
		calcTotalProb();
	}
	
	public Vector<Point2D.Double> getResults(){
		return results;
	}
	
	public double getTotalProb(){
		return totalProb;
	}

	public int get_n() {
		return n;
	}

	public int get_N() {
		return N;
	}

	public int get_k() {
		return k;
	}
	
	private void calcTotalProb(){
		totalProb = 0;
		for(Point2D.Double result: results){
			totalProb += result.getY();
		}
	}
}
